package ru.xeden.web.html.module.internal;

import ru.xeden.web.html.module.AbstractModule;
import ru.xeden.web.html.module.IModule;
import ru.xeden.web.html.module.IXedenModuleRegisterService;

public class RootModule
    extends AbstractModule
    implements IXedenModuleRegisterService
{
    public static final String ID = "xeden.rootModule";

    @Override
    public String getId()
    {
        return ID;
    }

    @Override
    public String getDisplayName()
    {
        return ID;
    }

    @Override
    public String getUrlPiece()
    {
        return "";
    }

    @Override
    public int getDisplayOrder()
    {
        return 0;
    }

    @Override
    public void register(IModule module)
    {
        registrSubModule(module);
    }

    @Override
    public boolean unregister(IModule module)
    {
        return unregistrSubModule(module);
    }
}
